package com.zs.proxy;

import com.zs.service.impl.RealBuyer;

/**
 * @author ZhouShuang
 * @version 17
 * @Title
 * @date 2025/6/10 上午11:44
 */
public class IntermediarySubClass extends RealBuyer {
    /**
     * 查看房屋
     *
     * @return 反馈信息
     */
    @Override
    public String havaALook() {
        before();
        String feedback = super.havaALook(); //执行目标对象的实际业务
        after();
        return "看房记录：买家反馈“"+feedback+"”。";
    }

    public void before() {
        System.out.println("前期准备。");
        System.out.println("查找房源。");
        System.out.println("和卖家沟通时间。");
    }

    public void after() {
        System.out.println("后期跟踪");
        System.out.println("和买家沟通意见");
    }
}
